<?php global $id, $user_ID, $user_identity, $caut, $caut_email, $caut_url ?>

<form id="comment-form" method="post" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php">
	
<?php /* User already logon */ if ( $user_ID ) : ?>

<p class="verify">Logged in as <a 
href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.<a 
href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" 
title="<?php _e('Log out of this account') ?>">Logout »</a>
</p>

<?php /* User Not Login & Non-user */ else : ?>

<p>
<label for="author">Name <?php if ($req) _e('(required)'); ?></label>
<input type="text" name="author" id="author" value="<?php echo $caut; ?>" size="22" tabindex="1" />
</p>

<p>
<label for="email">Mail (will not be published) <?php if ($req) _e('(required)'); ?></label>
<input type="text" name="email" id="email" value="<?php echo $caut_email; ?>" size="22" tabindex="2" />
</p>

<p>
<label for="url">URL</label>
<input type="text" name="url" id="url" value="<?php echo $caut_url; ?>" size="22" tabindex="3" />
</p>

<?php endif; ?>

<?php ta_include('allowedtag.php');?>

<p>
<textarea name="comment" id="comment" cols="60%" rows="10" tabindex="4"></textarea>
</p>

<p>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
</p>

<div><?php do_action('comment_form', $post->ID); ?></div>
</form>
